import request from '@/utils/request'
export const getEmployeeList = params => request.get('/sys/user', { params })
// 导出员工
export const exportEmployee = params => request.get('/sys/user/export', { responseType: 'blob' })
export const getExportTemplate = () => request.get('/sys/user/import/template', { responseType: 'blob' })
export const uploadExcel = data => request.post('/sys/user/import', data)
export const addEmployee = data => request.post('/sys/user', data)
export const getEmployeeDetail = id => request.get('/sys/user/' + id)
export const updateEmployee = data => request.put('/sys/user/' + data.id, data)
export const getEnableRoleList = () => request.get('/sys/role/list/enabled')
